Package com.cisco.pt.ipc.sim.impl
Class SmtpClientImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ProcessImpl
com.cisco.pt.ipc.sim.impl.SmtpClientImpl
- All Implemented Interfaces:
IPCObject,Process,SmtpClient
Information provided by the PKI file:
\class SmtpClient
\brief SmtpClient handles and manipulates the SMTP client.
\example network().getDevice("PC0").getProcess("SmtpClient")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionSmtpClientImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Methods inherited from class com.cisco.pt.ipc.sim.impl.ProcessImpl
getOwnerDeviceMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Constructor Details
-
SmtpClientImpl
public SmtpClientImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
sendMail
public boolean sendMail(String fromEmailId, String toEmailId, String subject, String contents, String password, String ipAddr) Information provided by the PKI file:
\brief This event is emitted when an email is sent. \param fromEmailId, the sender's email. \param toEmailId, the recipient's email. \param subject, tthe email subject. \param contents, the email contents. \param password, the smtp user password. \param ipAddr, the outgoing email server address- Specified by:
sendMailin interfaceSmtpClient- Parameters:
fromEmailId- Takes in a parameter of fromEmailIdtoEmailId- Takes in a parameter of toEmailIdsubject- Takes in a parameter of subjectcontents- Takes in a parameter of contentspassword- Takes in a parameter of passwordipAddr- Takes in a parameter of ipAddr- Returns:
- boolean Returns a boolean
-
cancelSend
public void cancelSend()Information provided by the PKI file:
\brief Intervene with mail sending- Specified by:
cancelSendin interfaceSmtpClient
-